package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;


@TableName("pur_approve")
@Getter
@Setter
@ToString
public class PurApprove {

    @TableId(value = "pur_approve_id", type = IdType.AUTO)
    private Integer PurApproveId;

    @TableField(value = "pur_id", property = "proPurchase.purId")
    private ProPurchase proPurchase;

    @TableField(value = "dept_id", property = "dept.deptId")
    private Dept dept;

    @TableField(value = "user_id", property = "user.userId")
    private User User;

    private String purApplyDate;

    private String purApproveDate;

    private String purApproveFeedback;

    private String purApproveStatus;     //状态有y:审批通过，n：审批拒绝,i：审批中

    @TableField(exist = false)
    private String applyDateSince;     //采购审批申请发起时间

    @TableField(exist = false)
    private String applyDateEnd;       //申请结束时间

}
